//
//  UPIDFAManager.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/8/28.
//

#import <Foundation/Foundation.h>
#import <AdSupport/AdSupport.h>

NS_ASSUME_NONNULL_BEGIN

@interface UPIDFAManager : NSObject

/// 单例共享实例
+ (instancetype)shared;

/// 请求广告追踪权限并返回 IDFA
- (void)requestTrackingAuthorizationWithCompletion:(void (^)(NSString * _Nullable IDFA))completion;

/// 获取当前 IDFA（不触发权限弹窗）
- (NSString *)getCurrentIDFA;

/// 检查广告追踪权限状态
- (BOOL)isAdvertisingTrackingEnabled;

/// 直接获取 IDFA（不检查权限）
- (NSString *)getIDFA;

@end

NS_ASSUME_NONNULL_END
